<?php
    require_once "config/db.php";

    class MMainMenu extends DB_main
    {
        function return_main_menu()
        {
            $sql = "select id, name from main_menu WHERE visible = '1'
                ORDER BY position";
            $res = $this->sql($sql);
            return $res;
	}
    }
?>
